package com.example.cstvdemoone.fragments;

import com.example.cstvdemoone.R;
import com.example.cstvdemoone.adapters.LiveAdapter;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class LiveFragment extends Fragment {
	
	private View containerView;
	private ListView mListView;
	private LiveAdapter adapter;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		containerView = inflater.inflate(R.layout.fragment_live, null);
		
		mListView = (ListView) containerView.findViewById(R.id.listView);
	
		adapter = new LiveAdapter(getActivity());
		
		mListView.setAdapter(adapter);
		
		
		return containerView;
	}
}
